export interface userBaseData {
  code: number,
  message: string,
  ok: boolean
}


// 用户登录返回信息.
export interface userResponseData extends userBaseData{
  data: string,
}

// 登录所需表单.
export interface loginForm {
  username: string,
  password: string
}

// 用户详情的返回接口
export interface LoginInfoResponseData  extends userBaseData{
  data: {
    routes: string[],
    buttons: string[],
    roles: string[],
    name: string,
    avatar: string
  }
}